home *** CD-ROM | disk | FTP | other *** search
- 
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-
- <title>Check Plug-in</title>
- <meta name="DHTMLScriptName" content="Check &Plug-in">
-
- <meta name="DialogResizable" content="true">
- <meta name="DialogSize" content="500,200">
-
- <style>
- button { width: 8em; }
- table { border: none; border-collapse: collapse }
- </style>
- <script type="text/JavaScript">
- var L_NOURL_ErrorMessage = "Please enter a URL";
- var L_NOOPTION_ErrorMessage = "Please choose an option";
- </script>
- <script type="text/JavaScript" src="FPLib.js"></script>
- <script type="text/JavaScript" src="Strings.js"></script>
- <script type="text/JavaScript" src="ChkPlugn.js"></script>
- </head>
- <body onload="safeFocus(theForm.Plugin)">
- <form id="theForm" name="theForm" onsubmit="Validate(); return false;">
- <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="threedshadow" id="AutoNumber1" width="100%" height="100%">
- <tr>
- <td colspan="7" nowrap>
- <label for="Plugin">
-
- If the current <u>p</u>lug-in is:
- </label>
- <select size="1" name="Plugin" accesskey="p" id="Plugin">
-
- <option>Flash</option>
- <option>QuickTime</option>
- <option>RealPlayer</option>
- <option>Shockwave</option>
- <option selected>Windows Media Player</option>
- </select>
- <br>
-
- </td>
- </tr>
- <tr>
- <td> </td>
- <td nowrap>
- <input type="checkbox" name="GoToURL1" value="ON" id="GoToURL1" accesskey="g">
-
- </td>
- <td nowrap>
- <label for="GoToURL1">
-
- <u>G</u>o to URL:
- </label>
- </td>
- <td width="100%" colspan="2" dir="ltr">
- <input type="text" name="URL1" id="URL1" style="width: 100%" disabled="true" style="background-color: threedface"></td>
- <td>
- </td>
- <td>
- <button name="BrowseURL1" value="Browse..." onclick="PickURL(URL1);" disabled="true" accesskey="b">
-
-
- <u>B</u>rowse...
- </button>
- </td>
- </tr>
- <tr>
- <td colspan="7" nowrap>
- <br>
-
- Otherwise, for all other plug-ins:
- <br>
-
- </td>
- </tr>
- <tr>
- <td>
-
- </td>
- <td>
- <input type="checkbox" name="GoToURL2" value="ON" accesskey="u" id="GoToURL2">
-
- </td>
- <td nowrap>
- <label for="GoToURL2">
-
- Go to <u>U</u>RL:
- </label>
- </td>
- <td width="100%" dir="ltr">
- <input type="text" name="URL2" id="URL2" style="width: 100%" disabled="true" style="background-color: threedface"></td>
- <td>
- </td>
- <td colspan="2">
- <button name="BrowseURL2" value="Browse..." onclick="PickURL(URL2);" disabled="true" accesskey="r">
-
-
- B<u>r</u>owse...
- </button>
- </td>
- </tr>
- <tr>
- <td height="80%"></td>
- </tr>
- <tr>
- <td colspan="7">
- <hr>
- <table width="100%">
- <tr>
- <td width="100%"> </td>
- <td>
- <button name="OK" value="OK" type="submit">
-
- OK
- </button>
- </td>
- <td> </td>
- <td>
- <button name="Cancel" value="Cancel" onclick="CancelAction();">
-
- Cancel
- </button>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </form>
- </table>
- </body>
- <script language="javascript" id="EventHandler">
-
- theForm.GoToURL1.onclick = e_GoToURLonclick;
- theForm.GoToURL2.onclick = e_GoToURLonclick;
-
- //Click event for the go to URL check box
- function e_GoToURLonclick()
- {
- if (event.srcElement.name == "GoToURL1")
- {
- theForm.URL1.disabled = !(theForm.URL1.disabled);
- theForm.BrowseURL1.disabled = theForm.URL1.disabled;
- if (theForm.URL1.disabled == false)
- theForm.URL1.style.backgroundColor = "window";
- else
- theForm.URL1.style.backgroundColor = "threedface";
- }
- if (event.srcElement.name == "GoToURL2")
- {
- theForm.URL2.disabled = !(theForm.URL2.disabled);
- theForm.BrowseURL2.disabled = theForm.URL2.disabled;
- if (theForm.URL2.disabled == false)
- theForm.URL2.style.backgroundColor = "window";
-
- else
- theForm.URL2.style.backgroundColor = "threedface";
-
- }
- }
-
- function PickURL(eURL)
- {
- var url = FrontPage.ShowPickURLDialog(FrontPage.ActiveDocument.url, eURL.value);
- if (url != '')
- eURL.value = url;
- eURL.focus();
- }
- </script>
- </html>
-